<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<title>登录</title>
		<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"/>
		<link href="${basePath}bootstrap-3.3.7-dist/css/style.css" rel="stylesheet"/>
		<link href="${basePath}bootstrap-3.3.7-dist/css/bootstrap-theme.min.css" rel="stylesheet"/>
		<script src="${basePath}bootstrap-3.3.7-dist/js/jquery.min.js"></script>
		
		<script src="${basePath}bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
		
		<script type="text/javascript" src="jquery-1.11.3/jquery-1.11.3.min.js" ></script>
		<script>
			function checkMe(){
				var isOk = true;
				var name = $("#username").val();
				if(name==""||name==null){
					alert("请输入账号！");
					isOk = false
				}
				
			}
		</script>
		<style>
			#a{
				margin:20px 200px;
			}
		</style>
</head>
<body>
<div id="a">
<%-- ${pageContext.request.contextPath}/admin/AdminLoginServlet --%>
		<form class="form-horizontal" action="${basePath}admin/AdminLoginServlet" method="post">
  <div class="form-group">
    <label for="username" class="col-sm-4 control-label">用户名</label>
    <div class="col-sm-8">
      <input type="text" class="form-control" id="username" name="adminName" placeholder="用户名">
    </div>
  </div>
  <div class="form-group">
    <label for="password1" class="col-sm-4 control-label">密码</label>
    <div class="col-sm-8">
      <input type="password" class="form-control" id="password1" name="adminPsw" placeholder="密码">
    </div>
  </div>
  <div class="form-group" >
    <div class="col-sm-offset-4 col-sm-8">
      <div class="checkbox">
        <label>
          <input type="checkbox"> 记住密码
        </label>
      </div>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-4 col-sm-8">
      <button type="submit" class="btn btn-default" onclick="return checkMe();" >登陆</button>
    </div>
  </div>
</form>
		</div>

</body>
</html>